//
//  SubBeautifyReturnView.m
//  IconMaster
//
//  Created by mac on 2017/9/4.
//  Copyright © 2017年 yangweiwei. All rights reserved.
//

#import "SubBeautifyReturnView.h"

@interface SubBeautifyReturnView()
@property (nonatomic, strong) UIButton *returnBtn;

@end

@implementation SubBeautifyReturnView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)initSubViews{

    self.backgroundColor = [UIColor clearColor];
    self.returnBtn = [[UIButton alloc] initWithFrame:CGRectMake(8, 22, KWidth, 42)];
    [self.returnBtn setImage:[UIImage imageNamed:@"previous_button@2x"] forState:Normal];
    [self.returnBtn addTarget:self action:@selector(dismissVC) forControlEvents:TouchUPInside];
    [self addSubview:self.returnBtn];
}

- (void)dismissVC{
//    [self];
    if ([self.delegate respondsToSelector:@selector(dismissVC)]) {
        [self.delegate dismissSuperView];
    }
}


@end
